<?php 
	get_header(); 
?>
						
				<div class="content fotos videos">
					<div class="header-post">
						<span class="bread-crumb">
							<?php if(function_exists('bcn_display')) : bcn_display(); endif; ?>
						</span>
						<span class="clear"></span>
						<div class="titulo">Videos</div>
						<span class="clear"></span>
					</div><!-- /header-post -->
					<span class="clear"></span>
					<div class="fotos-content">
						<?php 
						$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;	
						$videocount = new WP_Query('post_type=videos&posts_per_page=9&paged=' . $paged); ?>
						<?php if ( $videocount->have_posts() ) : ?>
						<ul>
							<?php $i = 0; while ( $videocount->have_posts() ) : $videocount->the_post(); $i++;  ?>
							<li>
								<div class="data"><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_time('d.m.Y'); ?></a></div>
								<div class="titulo"><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
								<div class="video-thumb">
									<?php echo parse_youtube_url(get('video_url_youtube'), 'embed', 268,199); ?>
								</div>
								<div class="desc"><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php new_excerpt(120); ?></a></div>
							</li>
							<?php endwhile; ?>
							<span class="clear"></span>
						</ul>
						<?php endif; ?>
						<span class="clear"></span>
						<div class="paginacao">
							<?php wp_pagenavi(); ?>
						</div>
					</div><!-- /resultado-de-busca -->
					<span class="clear"></span>
				</div><!-- /Content -->

			<?php get_footer(); ?>
